using System;
using System.Collections.Generic;
using System.Text;
using Emlyn.Applications.Scratch.Graphics.Tools;
using Microsoft.DirectX.Direct3D;
using System.Drawing;

namespace Emlyn.Applications.Scratch.Graphics.Dragon1
{
    public class ESingleTextureSprite: ESprite
    {
        Texture _texture = null;

        public ESingleTextureSprite(DirectXWrapper aWrapper, Size aSize, Texture aTexture)
            : base(aWrapper, aSize)
        {
            ResetTexture(aTexture);
        }

        public void ResetTexture(Texture aTexture)
        {
            _texture = aTexture;
        }

        protected override Texture GetCurrentTexture()
        {
            return _texture;
        }
    }
}
